package com.atguigu.test.mvc.bean;

import com.atguigu.test.mvc.annotation.*;
import com.atguigu.test.mvc.enums.PrivacyTypeEnum;
import lombok.Data;

/**
 * @author zp
 * @version 1.0
 * @description: 测试类
 * @date 2023/1/5 19:23
 */
@Data
public class People {
    private Integer id;
    @PrivacyEncryptCustomer(type = PrivacyTypeEnum.NAME)
    private String name;

    private Integer sex;

    private Integer age;
    @PrivacyEncryptCustomer(type = PrivacyTypeEnum.PHONE)
    private String phone;
    @PrivacyEncryptCustomer(type = PrivacyTypeEnum.EMAIL)
    private String email;
    @PrivacyEncryptCustomer(type = PrivacyTypeEnum.CUSTOMER,prefixNoMaskLen = 0,suffixNoMaskLen = 2,symbol = "x")
    private String sign;
}
